package com.shinhye.elephantsafe.domain;

import android.graphics.drawable.Drawable;

public class AppInfo implements Comparable<AppInfo>{
	
	private Drawable icon;
	private String name;
	private String packName;
	private boolean isRom;   //true: ROM; false: SD-card
	private boolean isUser;  //true: User; false: System
	private long cachesize;  //缓存大小
	private long datasize;   //数据大小
	private long codesize;   //应用程序大小
	private long appsize;    //应用程序的总大小
	
	public long getCachesize() {
		return cachesize;
	}
	public void setCachesize(long cachesize) {
		this.cachesize = cachesize;
	}
	public long getDatasize() {
		return datasize;
	}
	public void setDatasize(long datasize) {
		this.datasize = datasize;
	}
	public long getCodesize() {
		return codesize;
	}
	public void setCodesize(long codesize) {
		this.codesize = codesize;
	}
	public long getAppsize() {
		return appsize;
	}
	public void setAppsize(long appsize) {
		this.appsize = appsize;
	}
	public Drawable getIcon() {
		return icon;
	}
	public void setIcon(Drawable icon) {
		this.icon = icon;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPackName() {
		return packName;
	}
	public void setPackName(String packName) {
		this.packName = packName;
	}
	public boolean isRom() {
		return isRom;
	}
	public void setRom(boolean isRom) {
		this.isRom = isRom;
	}
	public boolean isUser() {
		return isUser;
	}
	public void setUser(boolean isUser) {
		this.isUser = isUser;
	}
	
	@Override
	public String toString() {
		return "AppInfo [name=" + name + ", packName=" + packName
				+ ", appsize=" + appsize + "]";
	}
	@Override
	public int compareTo(AppInfo another) {
		return this.name.compareTo(another.name);
	}
	
}
